package org.yzl.designPatterns.decorator;

import org.yzl.designPatterns.decorator.impl.DecoratorImpl;
import org.yzl.designPatterns.decorator.impl.SourceImpl;

public class DecoratorTest {

    /**
     * 装饰模式
     * @param args
     */
    public static void main(String[] args) {
        SourceImpl sourceImpl = new SourceImpl();
        IDecorator decorator = new DecoratorImpl(sourceImpl);
        decorator.mothod1();
    }
}
